﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Objects;

namespace Fcdbas.Infrastructure.UnitOfWork
{
    /// <summary>
    /// 提供工作单元的接口，实现以工作单元为事务的接口
    /// </summary>
    public interface IUnitOfWorkRepository
    {
        void PersistNewItem(System.Data.Objects.DataClasses.EntityObject item,bool IsLocal = false);
        void PersistUpdatedItem(System.Data.Objects.DataClasses.EntityObject item, bool IsLocal = false);
        void PersistDeletedItem(System.Data.Objects.DataClasses.EntityObject item, bool IsLocal = false);
        void PersistExcuteStoreCommand(string sql, params Object[] parameters);
        void PersistExcuteFunction(string functionName, params ObjectParameter[] parameters);
        void PersistExcuteNonQuery(string functionName, params Oracle.DataAccess.Client.OracleParameter[] parameters);

    }
}
